<div class="right-box clearfix" model-node="related_list">
	<fieldset class="inter-line mb20"><a href="javascript:;" event-node="change_related_zhanggui" rel="0" event-args="uid={$uid}&limit={$limit}" id="changerelated_zhanggui" class="right"><i class="ico-refresh"></i></a><legend class="inter-txt">{$title}</legend></fieldset>
    <ul model-node="related_ul_zhanggui" class="related_ul_user">
      <li>
        
      </li>
    </ul>
</div>

<script type="text/javascript">
$(function (){
	setTimeout(function (){
		$('#changerelated_zhanggui').click();
		$('#changerelated_zhanggui').attr('rel', 1);
	},100)
});
// 事件绑定
M.addEventFns({
    // 换一换操作
    change_related_zhanggui: {
        click: function() {
            var args = M.getEventArgs(this);
            var _model = M.getModels('related_ul_zhanggui');
			var rel = $('#changerelated_zhanggui').attr('rel');
            $.post(U('widget/RelatedZhanggui/changeRelate'), {uid:args.uid, limit:args.limit, rel:rel}, function(data) {
                $(_model[0]).html(data);
                M($(_model)[0]);
            }, 'json');
            return false ;
        }
    }
});
</script>